package service.order;


import entity.ResponseMessage;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Date;

/**
 * @description: 退货订单的api
 *
 * @author: Cheng
 *
 * @create: 2022-04-21  15:09
 **/
@Component
public interface ReturnAPI {

    /**
     * 按条件查询退货订单信息
     * @param orderNum
     * @param sname
     * @param startTime
     * @param endTime
     * @param status
     * @param pageNum
     * @return
     */
    @RequestMapping("selectReturnInfo")
    @ResponseBody
    public ResponseMessage selectReturnInfo(@RequestParam("orderNum") String orderNum,
                                              @RequestParam("sname") String sname,
                                              @RequestParam("startTime") Date startTime,
                                              @RequestParam("endTime") Date endTime,
                                              @RequestParam("status") int status,
                                              @RequestParam("pageNum") int pageNum
    );

//    /**
//     * 通过OutOrderInfo的id查询    联表 product
//     * @param id
//     * @return
//     */
//    @RequestMapping("selectProductAndOutOrderInfo")
//    @ResponseBody
//    public ResponseMessage selectProductAndOutOrderInfo(@RequestParam("id") String id);


}
